home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Panorama / Panorama - Disk 19D (1987-07-22)(Pacific North-West Amigas Club)[WB].zip / Panorama - Disk 19D (1987-07-22)(Pacific North-West Amigas Club)[WB].adf / PipeHandler1.2 / pipename.h < prev    next >
C/C++ Source or Header  |  1987-06-28  |  2KB  |  62 lines

  1. /****************************************************************************
  2. **  File:       pipename.h
  3. **  Program:    pipe-handler - an AmigaDOS handler for named pipes
  4. **  Version:    1.1
  5. **  Author:     Ed Puckett      qix@mit-oz
  6. **
  7. **  Copyright 1987 by EpAc Software.  All Rights Reserved.
  8. **
  9. **  History:    05-Jan-87       Original Version (1.0)
  10. **        07-Feb-87    Added conditional compilation for autoname.
  11. */
  12.  
  13.  
  14.  
  15. /*---------------------------------------------------------------------------
  16. ** PIPENAMELEN        : this is the maximum length of names ParsePipeName()
  17. **            can handle.
  18. **
  19. ** DEFAULT_PIPELEN    : the default pipe size returned by ParsePipeName()
  20. **            if no size is specified.
  21. **
  22. ** PIPE_SPEC_CHAR    : this is the character used by ParsePipeName() as an
  23. **            identifier for specifiers.  See pipename.c
  24. **
  25. ** DEFAULT_TAPNAME_PREFIX : the prefix for default tap names.  See pipename.c
  26. **
  27. ** AUTONAME_INIT    : Initial value used by get_autoname() to form
  28. **            default pipe names.  It MUST contain a block of
  29. **            digits.  See pipename.c.
  30. **            This is only used if AUTONAME is true.
  31. */
  32.  
  33. #define   PIPENAMELEN        108
  34.  
  35. #define   DEFAULT_PIPELEN   4096
  36.  
  37. #define   PIPE_SPEC_CHAR           '/'
  38. #define   DEFAULT_TAPNAME_PREFIX   "CON:10/15/300/70/"
  39.  
  40. #if AUTONAME
  41. # define   AUTONAME_INIT            "$00000000"
  42. #endif AUTONAME
  43.  
  44.  
  45.  
  46. #define   isnumeral(c)   inrange ((c), '0', '9')
  47.  
  48.  
  49.  
  50. extern int   ParsePipeName ( /* Bname, nmp, sizep, tapnmp */ );
  51. extern void  BSTRtoCstr    ( /* BSTRp, str, maxsize */ );
  52. extern void  CstrtoBSTR    ( /* str, BSTRp, maxsize */ );
  53. extern int   inrange       ( /* x, lower, upper */ );
  54. extern char  uppercase     ( /* c */ );
  55. extern char  *findchar     ( /* str, ch */ );
  56. extern void  l_strcpy      ( /* to, from */ );
  57. extern char  *strdiff      ( /* str1, str2 */ );
  58.  
  59. #if AUTONAME
  60.   extern char  *get_autoname ( /* newflag */ );
  61. #endif AUTONAME
  62.